package com.shanshan.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author shanshan
 * @since 2023-01-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_news")
@ApiModel(value="News对象", description="")
public class News implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "新闻编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "新闻标题")
    private String title;

    @ApiModelProperty(value = "新闻内容")
    private String content;

    @ApiModelProperty(value = "新闻类别编号")
    private Integer kid;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "发表时间")
    private String time;

    @ApiModelProperty(value = "审核状态 9（待审核）1（审核通过）2（新闻上架）3（审核不通过）4（新闻下架）")
    private Integer status;

    @ApiModelProperty(value = "点击量")
    private Integer click;

    @ApiModelProperty(value = "不通过原因")
    private String reason;

    @ApiModelProperty(value = "审核人")
    private String user;

    @ApiModelProperty(value = "审核时间")
    private String outtime;

    @ApiModelProperty(value = "新闻管理人（上架，下架）")
    private String username;

    @ApiModelProperty(value = "管理时间")
    private String usetime;

    @ApiModelProperty(value = "置顶（5），取消置顶（6）")
    private Integer uppid;

    @ApiModelProperty(value = "置顶时间")
    private String upptime;

    @TableField(exist = false)
    private String kind;
}
